#ifndef _CCSKIN_H_
#define _CCSKIN_H_

#include "CCSpineObject.h"
#include "CCSpineGlobal.h"
#include "CCAttachment.h"

NS_CC_BEGIN

class CCSlot;

/**
 * skin for a skeleton
 */
class CCSkin : public CCSpineObject {
private:    
    /// slot map
    typedef map<CCSlot*, CCArray*> SlotMap;
    SlotMap m_slotMap;
    
protected:
    CCSkin();
    
public:
    virtual ~CCSkin();
    static CCSkin* create();
    
    /// add slot    
    void addSlot(CCSlot* slot, CCAttachment* attachment);
    
    CCAttachment* getAttachment(CCSlot* slot, const char* attachmentName);
	CCAttachment* getFirstAttachment(CCSlot* slot);
};

NS_CC_END

#endif // __CCSkin_h__
